package com.lagou.jenkinsdemo.service.impl;

import com.lagou.jenkinsdemo.mapper.ArticleMapper;
import com.lagou.jenkinsdemo.pojo.Article;
import com.lagou.jenkinsdemo.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArticleServiceImpl implements ArticleService {

    @Autowired
    private ArticleMapper articleMapper;

    @Override
    public Article queryArticle(int i) {
        Article article = articleMapper.selectArticle(i);
        return article;
    }

    @Override
    public List<Article> queryListArticle() {
        return articleMapper.selectListArticle("点点");

    }
}
